package com.ywqf_api.enums;

public enum PasswordEnum {
    PASSWORD_NULL(2,"旧密码为空！"),
    NEW_PASSWORD_NULL(3,"新密码为空！"),
    USER_NULL(4,"用户不存在或原手机号有误！"),
    PASSWORD_NOT_EQUAL(5,"密码不正确！"),
    PHONE_NULL(6,"手机号为空！"),
    PHONE_NULL_AND_ERROR(11,"手机号有误"),
    CODE_NULL(7,"验证码为空！"),
    CODE_NOT_EQUAL(8,"验证码不正确！"),
    FAILED(9,"失败！"),
    UPDATE_FAILED(10,"修改不成功"),
    ATYPISM(11,"密码有误"),
    PHONE_NOT_EQUAL(5,"输入旧手机号不正确！"),
    PHONE_EXIST(11,"手机号已被使用"),
    SUCCESS(1000,"成功！");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    PasswordEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
